import styled from 'styled-components'

export const HomeWrapper = styled.div`
  width: 960px;
  margin: 20px auto 0;
  min-height: 300px;
  display: flex;
  justify-content: space-between;
`
export const HomeLeft = styled.div`
  width: 625px;
  img.banner-img {
    width: 100%;
  }
`
export const HomeRight = styled.div`
  width: 280px;
`
export const CardItem = styled.div`
  width: 280px;
  height: 50px;
  background-color: skyblue;
  margin-bottom: 10px;
`
export const Toppics = styled.ul`
  display: flex;
  margin-top: 20px;
  li {
    padding: 5px 10px;
    background-color: #6ccff7;
    color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
  }
`
export const Recommands = styled.div`
  .recommond__item {
    display: flex;
    margin-bottom: 20px;
    .item__left {
      h3 {
        font-size: 20px;
        margin-bottom: 5px;
        line-height: 1.2em;
      }
      p {
        color: #666;
        line-height: 1.2em;
      }
      margin-right: 5px;
    }
    .item__right {
      img {
        width: 150px;
        height: 100px;
        border-radius: 6px;
      }
    }
  }
`

export const ListsItem = styled.div`
  width: 280px;
  height: 50px;
  background: url(${(props) => props.imgUrl});
  background-size: cover;
`

export const WriterSection = styled.div`
  .writer-recommond {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  .writer-item {
    display: flex;
    margin: 10px 0;
    img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
    }
    .info {
      margin-left: 10px;
    }
    .writer-name {
      font-size: 14px;
      margin-top: 5px;
    }
    .writer-desc {
      margin-top: 5px;
      font-size: 12px;
      color: #969696;
    }
  }
  .search-all {
    padding: 7px 7px 7px 12px;
    font-size: 13px;
    color: #787878;
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
  }
`

export const LoadMore = styled.div`
  width: 600px;
  line-height: 30px;
  margin: 30px auto 60px;
  padding: 5px 15px;
  text-align: center;
  font-size: 15px;
  border-radius: 20px;
  color: #fff;
  background-color: #a5a5a5;
  cursor: pointer;
`
export const ScroolTop = styled.div`
  position: fixed;
  right: 200px;
  bottom: 100px;
  color: #ec6149;
  border: 1px solid #ec6149;
  padding: 20px 10px;
  &:hover{
    cursor:pointer;
    background-color:#ec6149;
    color:#fff;
  }
`
